import request from '../utils/request'

export function listCompose(query) {
    return request({
        url: '/system/user/list',
        method: 'get',
        params: query
    })
}
// 仓库管理
// 渲染
export function listWarehouse(query) {
    return request({
        url: '/wms/warehourse/list',
        method: 'get',
        params: query
    })
}
// 删除
export function dele(wId) {
    return request({
        url: '/wms/warehourse/' + wId,
        method: 'delete',
    })
}
// 修改
export function upt(data) {
    return request({
        url: '/wms/warehourse',
        method: 'put',
        data: data
    })
}
// 添加
export function add(data) {
    return request({
        url: '/wms/warehourse',
        method: 'POST',
        data: data
    })
}
// 货架管理
// 渲染
export function listgoodsshelves(query) {
    return request({
        url: '/wms/shelves/list',
        method: 'get',
        params: query
    })
}
// 删除
export function del(sId) {
    return request({
        url: '/wms/shelves/' + sId,
        method: 'delete'
    })
}
// 添加
export function Cadd(data) {
    return request({
        url: '/wms/shelves',
        method: 'post',
        data: data
    })
}
// 修改
export function Cupt(data) {
    return request({
        url: '/wms/shelves',
        method: 'put',
        data: data
    })
}
// 收货人信息
// 渲染
export function listConsigneeinformation(query) {
    return request({
        url: '/wms/supplier/list',
        method: 'get',
        params: query
    })
}
// 删除
export function idel(sId) {
    return request({
        url: '/wms/supplier/' + sId,
        method: 'delete'
    })
}
//添加
export function iadd(data) {
    return request({
        url: '/wms/supplier',
        method: 'post',
        data: data
    })
}
// 修改
export function iupt(data) {
    return request({
        url: '/wms/supplier',
        method: 'put',
        data: data
    })
}
// 货品管理
// 渲染
export function listcom(query) {
    return request({
        url: '/wms/list/list',
        method: 'get',
        params: query
    })
}
// 货品信息添加
export function comad(data) {
    return request({
        url: '/wms/product',
        method: 'post',
        data: data
    })
}
// 
export function comhp(query) {
    return request({
        url: '/wms/product/list',
        method: 'get',
        params: query
    })
}
// 增加货品
export function comadd(data) {
    return request({
        url: '/wms/list',
        method: 'post',
        data: data
    })
}
// 货品信息维护
// 渲染
export function listmain(query) {
    return request({
        url: '/wms/product/list',
        method: 'get',
        params: query
    })
}
export function listcustomer(query) {
    return request({
        url: '/wms/customer/list',
        method: 'get',
        params: query
    })
}
// 删除
export function maindel(pId) {
    return request({
        url: '/wms/product/' + pId,
        method: 'delete'
    })
}
// 添加
export function mainadd(data) {
    return request({
        url: '/wms/product',
        method: 'post',
        data: data
    })
}
// 修改
export function mainput(data) {
    return request({
        url: '/wms/product',
        method: 'put',
        data: data
    })
}
// 库存管理
// 渲染
export function liststock(query) {
    return request({
        url: '/wms/product/list',
        method: 'get',
        params: query
    })
}
// 库存盘点
// 盘库记录
export function listinve(query) {
    return request({
        url: '/wms/inventory/list',
        method: 'get',
        params: query
    })
}
// 盘库保存
export function invead(data) {
    return request({
        url: '/wms/inventory/batch',
        method: 'post',
        data: data
    })
}
// 台账管理
export function listbook(query) {
    return request({
        url: '/wms/product/book',
        method: 'get',
        params: query
    })
}
// 报表管理
// 仓库变动报表
export function listrepo(data) {
    return request({
        url: '/wms/product/report',
        method: 'post',
        data: data
    })
}
// 仓储费用管理
// 用户仓储费用列表
// 渲染
export function liststorage(query) {
    return request({
        url: '/wms/cost/all',
        method: 'get',
        params: query
    })
}
// 添加
export function storagead(data) {
    return request({
        url: '/wms/cost',
        method: 'post',
        data: data
    })
}
// 修改
export function storageup(data) {
    return request({
        url: '/wms/cost',
        method: 'put',
        data: data
    })
}
//记录明细
// 渲染
export function listRecord(query) {
    return request({
        url: '/wms/cost/list',
        method: 'get',
        params: query
    })
}
export function Recordup(data) {
    return request({
        url: '/wms/cost',
        method: 'post',
        data: data
    })
}
// 入库订单
// 
export function listorder(query) {
    return request({
        url: '/wms/info/list',
        method: 'get',
        params: query
    })
}
// 添加
export function orderad(data) {
    return request({
        url: '/wms/put',
        method: 'post',
        data: data
    })
}
// 添加商品
export function orderads(data) {
    return request({
        url: '/wms/info',
        method: 'post',
        data: data
    })
}
// 订单列表
// 渲染
export function listorder2(query) {
    return request({
        url: '/wms/put/list',
        method: 'get',
        params: query
    })
}
// 修改
export function order2up(data) {
    return request({
        url: '/wms/put',
        method: 'put',
        data: data
    })
}
// 删除
export function order2del(id) {
    return request({
        url: '/wms/put/' + id,
        method: 'delete'
    })
}

// 审核表格
export function order2examine(query) {
    return request({
        url: '/wms/info/list',
        method: 'get',
        params: query
    })
}
// 审核通过
export function order2adopt(id) {
    return request({
        url: '/wms/put/check/' + id,
        method: 'get'
    })
}

// 审核拒绝
export function order2refuse(data) {
    return request({
        url: '/wms/put',
        method: 'put',
        data: data
    })
}

// 入库数量修改
export function order2quantity(data) {
    return request({
        url: '/wms/info',
        method: 'put',
        data: data
    })
}
// 管理费用
export function expenseitem(id) {
    return request({
        url: '/wms/put/' + id,
        method: 'get',
    })
}


// 管理费用
export function Modifyorder(data) {
    return request({
        url: '/wms/put',
        method: 'put',
        data: data
    })
}

// 出库订单
export function Exlist(query) {
    return request({
        url: '/wms/take/list',
        method: 'get',
        params: query
    })
}
// 管理费用
export function expen(id) {
    return request({
        url: '/wms/take/' + id,
        method: 'get'
    })
}
export function exp(data) {
    return request({
        url: '/wms/take',
        method: 'put',
        data: data
    })
}
// 审核通过
export function exadopt(id) {
    return request({
        url: '/wms/take/check/' + id,
        method: 'get'
    })
}
// 审核拒绝
export function exref(data) {
    return request({
        url: '/wms/take',
        method: 'put',
        data: data
    })
}
// 删除
export function exdel(id) {
    return request({
        url: '/wms/take/' + id,
        method: 'delete'
    })
}
// 出库订单
export function exad(data) {
    return request({
        url: '/wms/take',
        method: 'post',
        data: data
    })
}